home *** CD-ROM | disk | FTP | other *** search
/ United Public Domain Gold 2 / United Public Domain Gold 2.iso / utilities / pu062.dms / pu062.adf / Dissolve / readme < prev    next >
Text File  |  1987-06-27  |  3KB  |  53 lines

  1.  
  2.     Dissolve is a program I wrote after reading an article in the Nov 1986
  3. issue of Doctor Dobb's Journal by Mike Morton. It displays a picture in a
  4. random pattern on the screen, which causes the picture to slowly appear as
  5. if dissolving. The affect is rather pleasing. To use the program from the
  6. CLI type the command 'dissolve filename [-speed]'. The file must be a picture
  7. stored in IFF format. All the pictures I have tried work fine, including HAM
  8. pictures. The speed should be a number from 100 to 32565. The speed is optional
  9. with a default value of 1000. Any key press or clicking the mouse pointer in 
  10. the upper left corner will end the display. The right mouse button will hold
  11. the display so that you can slow it down if desired.
  12.  
  13. Technical Information
  14.  
  15.     The program has a complete IFF file reader in it which I think is 
  16. pretty nice routine all by itself. It can be used stand alone to display IFF
  17. files. A temporary BitMap is setup for the reader to store the picture in
  18. while it is begining displayed. After the file has been read into the temp
  19. bitmap we start the display routine. This routine has a mask plane which is
  20. used to blit the bitmap with the picture into the bitmap which is used for
  21. the display. Wherever there is a 1 bit in the mask that pixel will be
  22. displayed. Wherever the mask has a 0 bit that pixel will be left blank in the
  23. display. This is where the speed value is used, the speed determines how many
  24. bits to set in the mask before we do each blit to the display.
  25.  
  26.     The display tends to flicker some during each blit and should probably
  27. be double buffered to make it a little smoother, but it is not to bad. I make
  28. this comment and the ones that follow in the hopes someone will take the time
  29. to make improvements on this program and repost it.
  30.  
  31.     Many different display effects can be done using this program as a 
  32. start. All you have to do is use a different algorithym to set the bits in
  33. the mask plane and you can create almost any effect you see on TV. The 
  34. easiest would be to just start setting bits in the mask from the start to the
  35. finish and you have a top to bottom wipe. Start at the end of the mask and
  36. you have a bottom to top wipe, or a little tougher one would be a side to side
  37. wipe. Start in the middle of the mask and draw a small circle, then make the
  38. circle larger each time, or use squares, stars or whatever, to create all
  39. different kinds of displays.
  40.  
  41.     Another effects would be to display one picture and then do a dissolve,
  42. or one of the other effects, to merge in a new picture. This requires that the
  43. new picture has the same attributes (size, colors, ham, etc.) as the current
  44. picture, because you can't change the screen attributes between the pictures.
  45.  
  46.     If someone was real ambitious they could do a program like Dpslide that
  47. did a lot of different displays with a display list.
  48.  
  49.  
  50.     Good Luck,
  51.     Lee M. Robertson 
  52.     ( PLINK: lmr )
  53.